﻿@model IEnumerable<Forest.Cat.Web.Models.Catalog.JobLovModel>
<div class="Classified">
    <div class="Classified_title">
        所有结果</div>
    <div class="Classified_menus">
        @for (int i = 0; i < Model.Count(); i++)
        {
            var jobLovModel = Model.ElementAt(i);
            <div id="main@(i + 1)" onclick="javascript:class1(@(i + 1))">
                <a href="#">
                    <img src="@Url.Content("~/Themes/DarkOrange/Content/images/icon-plus-16-16.jpg")" /></a>@jobLovModel.Name
            </div>
            <div id="child@(i + 1)" style="display: block;">
                <ul>
                    @foreach (var item in jobLovModel.SubList)
                    { 
                        <li>
                            @Html.ActionLink(item.Name + "(" + item.Total + ")", "SearchJobList", new
                            {
                                jobTitle = ViewBag.JobTitle,
                                companyName = ViewBag.CompanyName,
                                lovCondition = (Request.QueryString["lovCondition"] ?? String.Empty) + "|" +
                                    ((int)item.LovType).ToString() + "-" + item.Value.ToString() ,
                                isAdvSearch = ViewBag.IsAdvSearch,
                            })
                        </li>
                    }
                </ul>
            </div>    
        }
    </div>
</div>
